An attached document embedded as binary object or sent together with the invoice.
バイナリオブジェクトとして埋め込まれた、または請求書と一緒に送られた添付書類。


About

Syntax binding
ubl:Invoice / cac:AdditionalDocumentReference / cac:Attachment / cbc:EmbeddedDocumentBinaryObject
Restricted Syntax Cardinality
0..1
Attribute(s)
@mimeCode
@filename
UBL 2.1
XPath
/ Invoice / cac:AdditionalDocumentReference [ not(cbc:DocumentTypeCode = '130') ] / cac:Attachment / cbc:EmbeddedDocumentBinaryObject
Occurrence
0..1
Datatype
udt:BinaryObjectType
UBL Definition
A binary large object containing an attached document.
Namespace
cbc urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2

Semantic

Business Term

Attached document

添付書類
ID
ibt-125
Description
An attached document embedded as binary object or sent together with the invoice.
バイナリオブジェクトとして埋め込まれた、または請求書と一緒に送られた添付書類。
Explanation
An invoice may contain a supportive document as informative.
Examples of such documents may be work reports certificates or other documents that relate to the purchase or the invoiced items.
A supportive document can be attached to the invoice in two ways: by providing a direct hyperlink through which the document can be downloaded or by embedding the document into the invoice.
A compliant receiver is required to be able to receive an attached supportive document and in case of embedded files to convert it into a file but he is not required to handle the content of that file since it is only provited as informative.
When attaching a document using an uri the hyperlink shall point directly to the file that is to be downloaded.
An embedded document is contained in the invoice as binary object using base64 encoding and shall be supplemented with information about the name of the document file and a mime code indicating the type of the file. This allows the receiver to convert the binary code into a file that has the same name as the original file and allows him to associate the received file to a suitable application for viewing its content.
The set of allowed codes for the file type (mime code) is limited to types that can be opened with applications that are commonly used and available.
As is with other file types when an attached file is an XML file the receiver is expected to be able to receive and convert the binary object into an XML file but the sender can not expect the receiver to view or process the content of that XML file.
Any further handling of an embedded XML file attachment is optional for the receiver.
請求書には、情報として裏付けとなる文書が含まれている場合がある。
このような文書の例としては、作業報告書、証明書、または購入または請求さ​​れた品目に関連するその他の文書がある。
裏付けとなる文書は、2 つの方法で請求書に添付できる。
文書をダウンロードするためのリンク先を提供する方法と、文書を請求書に埋め込む方法。受信者は、添付文書を受信できる必要があり、埋め込みファイルの場合はそれをファイルに変換する必要があるが、情報として提供されるだけであるため、そのファイルのコンテンツを処理する必要はない。
URI を使用してドキュメントを添付する場合、ハイパーリンクは、ダウンロードするファイルを直接指す必要がある。
埋め込みドキュメントは、base64 エンコーディングを使用したバイナリ オブジェクトとして請求書に含まれ、ファイルの名前とファイルの種類を示す MIME コードの情報が補足される。
この情報により、受信者はバイナリ コードを元のファイルと同じ名前のファイルに変換し、受信したファイルを適切なアプリケーションに関連付けてコンテンツを表示できる。
ファイルの種類 (MIME コード) に対して許可されるコードの範囲は、一般的に使用され、利用可能なアプリケーションで開くことができる種類に限定される。
他のファイル タイプと同様に、添付ファイルが XML ファイルの場合、受信者はバイナリ オブジェクトを受信して​​ XML ファイルに変換できると期待されるが、送信者は受信者がその XML のコンテンツを表示または処理することを期待できない。ファイルや埋め込まれた XML ファイルの添付ファイルをさらに処理するかどうかは、受信者による。
Cardinality
0..1
Semantic datatype
Binary object
Section
Shared

Code list(s)

MimeCode
Mime code (subset of IANA code list)

Child elements

  XPath Syn. Card. Semantic Card. ID Business term
 / Invoice / cac:AdditionalDocumentReference [ not(cbc:DocumentTypeCode = '130') ] / cac:Attachment / cbc:EmbeddedDocumentBinaryObject / @mimeCode 1..1 1..1 ibt-125-1
 / Invoice / cac:AdditionalDocumentReference [ not(cbc:DocumentTypeCode = '130') ] / cac:Attachment / cbc:EmbeddedDocumentBinaryObject / @filename 1..1 1..1 ibt-125-2

VERSION 1.0 RULES

Unchanged
Same as 0.9.3

VERSION 0.9.3 RULES
JP PINT 0.9.3 Shared rules
ibr-071(fatal)
Unchanged
Same as 0.9.2
ibr-074(fatal)
Changed Message
[ibr-074]-Attached document (ibt-125) MUST contain the mime code attribute (ibt-125-1).
context
//*[ends-with(name(), 'BinaryObject')]
test
(@mimeCode)
ibr-075(fatal)
Changed Message
[ibr-075]-Attached document (ibt-125) MUST contain the filename attribute (ibt-125-2).
context
//*[ends-with(name(), 'BinaryObject')]
test
(@filename)

VERSION 0.9.2 RULE
JP PINT 0.9.2 Shared rule
ibr-071(fatal)
Still valid
[ibr-071]-An invoice should not include an AdditonalDocumentReference (ibg-24) simultaneously referring an Invoice Object Identifier (ibt-018) and an Attachment (ibt-125).
context
/ubl:Invoice |
/cn:CreditNote
test
not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode='130']/cac:Attachment)